package com.zzl.finance.order.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author sunpp
 * @date 2022-03-07 10:41:16
 */
@Data
@ApidocModel
@SuppressWarnings("javadoc")
public class OrderInvoiceInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApidocModelProperty(description = "主键")
    private String id;
    @ApidocModelProperty(description = "抬头")
    private String rise;
    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "发票金额")
    private Double invoiceAmount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApidocModelProperty(description = "创建时间", validate = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApidocModelProperty(description = "上链地址")
    private String uplinkAddress;

    @ApidocModelProperty(description = "处理状态")
    private Integer invoiceStatus;

    @ApidocModelProperty(description = "处理状态Str")
    private String invoiceStatusStr;

    @ApidocModelProperty(description = "操作按钮集合")
    private List<KeyValue> operateButton = new ArrayList<>();
}
